package com.dingreading.cloud.mall.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *  acec门票-用户
 */
@Data
@Table(value = "nj_ticket_user", dataSource = "ds2")
public class NjTicketUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 添加时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;

    /**
     * 机构名称
     */
    private String corpName;

    /**
     * 用户姓名
     */
    private String name;

    /**
     * 微信用户id
     */
    private String openid;

    /**
     * 参会证领取状态 0.未领取 1.已领取
     */
    private Integer permitStatus;

    private String permitStatusName;

    private String phone;

    /**
     * 门票类型 1.参会票 2.观展票 3.参展预订
     */
    private Integer ticketType;

    /**
     * 门票类型名称 1.参会票 2.观展票 3.参展预订
     */
    private String ticketTypeName;

    /**
     * 用户uid
     */
    private String uid;

    /**
     * 用户类型 观展人员 工作人员 媒体 展商 嘉宾
     */
    private String userType;

    private String year;

    /**
     * 领票时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private Date editTime;

    /**
     * 领票状态 0.未领票 1.已领票
     */
    private Integer getStatus;

    private String getStatusName;

    /**
     * 付款状态 0.未付款 1.已付款
     */
    private Integer paymentStatus;

    private String paymentStatusName;

    /**
     * 领证时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date permitTime;

    /**
     * 来源
     */
    private String source;

    /**
     * 参会证个数
     */
    private Integer permitNum;

    /**
     * 渠道
     */
    private String from;

}
